package com.top4create.service;

import java.util.List;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;

import com.top4create.model.Company;
import com.top4create.webapp.util.PageListUtil;

import javax.jws.WebService;

@WebService
@Path("/company")
public interface CompanyManager {

	@Path("/{CompanyId}")
	@GET
	public Company getCompany(@PathParam("CompanyId") String CompanyId);

	@Path("/{pageNumber}/{pageSize}/{where}")
	@GET
	public PageListUtil getCompanys(@PathParam("pageNumber") int pageNumber,
			@PathParam("pageSize") int pageSize,
			@PathParam("where") String where);

	@Path("/json/{pageNumber}/{pageSize}/{where}")
	public String getCompanysJson(@PathParam("pageNumber") int pageNumber,
			@PathParam("pageSize") int pageSize,
			@PathParam("where") String where);

	public Company saveCompany(Company Company);

	public void removeCompany(String CompanyId);

	public List<Company> search(String searchTerm);
}
